﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Controls="clr-namespace:MahApps.Metro.Controls">

    <Style TargetType="{x:Type Controls:RangeSlider}">
        <Setter Property="RangeStop" Value="100" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:RangeSlider}">
                    <StackPanel Orientation="Horizontal" Name="PART_RangeSliderContainer">
                        <RepeatButton Name="PART_LeftEdge" Style="{DynamicResource HorizontalTrackLargeDecrease}"/>
                        <Thumb Name="PART_LeftThumb" Cursor="SizeWE" Style="{DynamicResource HorizontalSliderThumb}"/>
                        <Thumb Name="PART_MiddleThumb" Cursor="ScrollAll" MinWidth="10">
                            <Thumb.Style>
                                <Style TargetType="Thumb">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate>
                                                <Rectangle Height="3" Margin="0,1,0,0" Fill="{DynamicResource AccentColorBrush}" />
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Thumb.Style>
                        </Thumb>
                        <Thumb Name="PART_RightThumb" Cursor="SizeWE" Style="{DynamicResource HorizontalSliderThumb}"/>
                        <RepeatButton Name="PART_RightEdge" Style="{DynamicResource HorizontalTrackLargeDecrease}"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>